package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tt.com.common.annotation.IsNull;

import java.util.Date;

/**
 * 服务供应商表
 * IsNull:
 * <br> name(供应商名称)
 * <br> type(供应商类型 0 供应商 1 施工队)
 * <br> code(供应商标识)
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_common_providers")
public class YxCommonProviders {
    public static final String COL_ID = "id";
    public static final String COL_NAME = "name";
    public static final String COL_TYPE = "type";
    public static final String COL_STATUS = "status";
    public static final String COL_CODE = "code";
    public static final String COL_SEQ = "seq";
    public static final String COL_CREATE_TIME = "create_time";
    public static final String COL_CREATE_USER_ID = "create_user_id";
    public static final String COL_LAST_UPDATE_TIME = "last_update_time";
    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";
    public static final String COL_DELETE_TIME = "delete_time";
    public static final String COL_DELETE_USER_ID = "delete_user_id";
    public static final String COL_DATA_STATUS = "data_status";
    public static final String COL_ORGAN_ID = "organ_id";
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 供应商/施工队名称
     */
    @TableField(value = "`name`")
    @IsNull
    private String name;
    /**
     * 供应商类型 (0 供应商 1 施工队)
     */
    @TableField(value = "`type`")
    @IsNull
    private Integer type;
    /**
     * 是否有效
     */
    @TableField(value = "`status`")
    private Integer status;
    /**
     * 供应商标识
     */
    @TableField(value = "code")
    @IsNull
    private String code;
    /**
     * 序号
     */
    @TableField(value = "seq")
    private Integer seq;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private String createUserId;
    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;
    /**
     * 最后修改人
     */
    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;
    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;
    /**
     * 删除人
     */
    @TableField(value = "delete_user_id")
    private String deleteUserId;
    /**
     * 删除状态(0删除 1正常)
     */
    @TableLogic
    @TableField(value = "data_status")
    private Integer dataStatus;
    /**
     * 机构id
     */
    @TableField(value = "organ_id")
    private String organId;
}